
// src/router/index.js

import Vue from 'vue';
import Router from 'vue-router';
import Login from "../page/Login.vue";
import MainPage from '../page/MainPage.vue';


Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/mainPage',
      name: 'MainPage',
      component: MainPage
    }
  ]
});
